<script type="text/javascript">
function showcontact(a,b){
	for(var i=1; i<=b; i++)	{
		if(i == a) {
			document.getElementById("ctab"+i).className = "gd_g_20";
			document.getElementById("showtab"+i).style.display = "block";
		}else{
			document.getElementById("ctab"+i).className = "";
			document.getElementById("showtab"+i).style.display = "none";
		}
	}
}
function showclients(a,b){
	for(var i=1; i<=b; i++)	{
		if(i == a) {
			document.getElementById("ctabclients"+i).className = "gd_g_20";
			document.getElementById("showclients"+i).style.display = "block";
		}else{
			document.getElementById("ctabclients"+i).className = "";
			document.getElementById("showclients"+i).style.display = "none";
		}
	}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td ><table class="item"width="100%" border="0">
              <tr>
                <td colspan="2" class="item_title" ><?php echo Kohana::lang('client_lang.lbl_testimonial')?></td>
              </tr>
			   <tr><td>&nbsp;</td> </tr>
			  <?php foreach($mTestimonials as $list){?>
              <tr>
                <td    width="30%" class="item_content">
				<?php
				if(!empty($list['testimonials_image']) && file_exists('uploads/testimonials/'.$list['testimonials_image'])){
				?>
				<img class="img" src="<?php echo $this->site['base_url'].'uploads/testimonials/'.$list['testimonials_image'] ?>"  align="left" hspace="5px"/>
				<?php }?>
				<a href="<?php echo $this->site['base_url']?>clients/testimonials/<?php echo $list['testimonials_id']?>"><strong><?php echo $list['testimonials_title'];?></strong></a><br />
                    <?php echo $list['testimonials_description'];?><span class="chitiet">
					<a href="<?php echo $this->site['base_url']?>clients/testimonials/<?php echo $list['testimonials_id']?>"><strong><?php echo Kohana::lang('site_lang.lbl_more') ?></strong></a>
					...
					</td>
                
              </tr>
			  <tr><td><hr size="1"  class="quiz" /></td> </tr>
			  <?php } ?>
			  <tr>
				<td align="right"> <?php echo $this->pagination->render()?> </td>
			  </tr>
			  
            </table></td>
          </tr>
          <tr>
            <td  class="space_line"> </td>
          </tr>
          <tr>
            <td style="padding-top:10px"><table class="item"width="100%" border="0">
              <tr>
                <td class="item_title" ><?php echo Kohana::lang('client_lang.lbl_case_studies')?></td>
              </tr>
			  <tr>
                <td >
				<a href="javascript:void()" class="gd_g_20" id="ctab1" onclick="showcontact('1','2')"><?php echo Kohana::lang('client_lang.lbl_vn_studies')?></a> &nbsp;|&nbsp; <a href="javascript:void()" id="ctab2" class="" onclick="showcontact('2','2')"><?php echo Kohana::lang('client_lang.lbl_global_studies')?></a>
				</td>
              </tr>
              <tr>
			  
                <td>
				  <table id="showtab1" style="display:block;" border="0" cellpadding="0" cellspacing="0"><tr>
                <td >
				
				<?php foreach($mCate as $listcate) {?>
				<div class="FL PR30" style="width: 310px;">
				<p class="gd_12 PT10"><b><?php echo $listcate['cate_title']?></b></p>
				<ul class="hlist1">
				<?php foreach($mStudies as $list){
					if($list['cate_id']==$listcate['cate_id']){
				?>
				<li>
				<img src="<?php echo $this->site['theme_url']?>/index/pics/icon_book.jpg" width="8" height="9" border="0" />&nbsp;<a href="<?php echo $this->site['base_url']?>clients/studies/<?php echo $list['studies_id']?>"><?php echo $list['studies_title'];?></a></li>
				
				<?php 
						}
					}?>
					</ul>
				</div>
				<?php 
				}
				 ?></td>
              </tr>
				 </table>
				 <table id="showtab2" style="display: none;" border="0" cellpadding="0" cellspacing="0"><tr>
                <td >
				
				<?php foreach($mCateGlobal as $listCateGlobal) {?>
				<div class="FL PR30" style="width: 310px;">
				<p class="gd_12 PT10"><b><?php echo $listCateGlobal['cate_title']?></b></p>
				<ul class="hlist1">
				<?php foreach($mStudiesGlobal as $listGlobal){
					if($listCateGlobal['cate_id']==$listGlobal['cate_id']){
				?>
				<li>
				<img src="<?php echo $this->site['theme_url']?>/index/pics/icon_book.jpg" width="8" height="9" border="0" />&nbsp;<a href="<?php echo $this->site['base_url']?>clients/studies/<?php echo $listGlobal['studies_id']?>"><?php echo $listGlobal['studies_title'];?></a></li>
				
				<?php 
						}
					}?>
					</ul>
				</div>
				<?php 
				}
				 ?></td>
              </tr>
				 </table>
                </td>
                
              </tr>
            </table></td>
          </tr>
		  <tr>
            <td  class="space_line"> </td>
          </tr>
          <tr>
            <td style="padding-top:10px"><table class="item"width="100%" border="0">
              <tr>
                <td colspan="2" class="item_title" ><?php echo Kohana::lang('client_lang.lbl_list_client')?></td>
              </tr>
			  <tr>
                <td >
				<a href="javascript:void()" class="gd_g_20" id="ctabclients1" onclick="showclients('1','2')"><?php echo Kohana::lang('client_lang.lbl_vn_client')?></a> &nbsp;|&nbsp; <a href="javascript:void()" id="ctabclients2" class="" onclick="showclients('2','2')"><?php echo Kohana::lang('client_lang.lbl_global_client')?></a></p>
				</td>
              </tr>
              <tr>
                <td width="49%">
				 <table id="showclients1" style="display:block;" border="0" cellpadding="0" cellspacing="0"><tr>
                <td >
				<?php 
				if($this->language==2)
				echo isset($mClients[0])?$mClients[0]['clients_content']:'';
				else
				echo isset($mClients[0])?$mClients[0]['clients_content_vn']:'';
				?>
				 </td>
              </tr>
				</table>
				 <table id="showclients2" style="display:none;" border="0" cellpadding="0" cellspacing="0"><tr>
                <td >
				<?php 
				if($this->language==2)
				echo isset($mClientsGlobal[0])?$mClientsGlobal[0]['clients_content']:'';
				else
				echo isset($mClientsGlobal[0])?$mClientsGlobal[0]['clients_content_vn']:'';
				?>
				 </td>
              </tr>
				</table>
				<!--<div class='pagination'><?php echo $this->pagination?><div>-->
				 </td>
              </tr>
			  
            </table></td>
          </tr>
          
        </table>

